<extend name="Layout:layout_dialog" />
<block name="body_main"> 
    <div class="xsui-page-header">
        <ul class="xsui-tabs">
            <li class="ui-state-default"><a href="{:U('product_goods_edit','id='.$data['product_id'])}">基本属性</a></li>
            <foreach name="content_codes" item="vo">
                <if condition="$data['code'] eq $vo['id']">
                    <li class="ui-state-active"><a href="{:U('product_content_edit','id='.$data['product_id'].'&code='.$vo['id'])}">{$vo.text}</a></li>
                    <else/>
                    <li class="ui-state-default"><a href="{:U('product_content_edit','id='.$data['product_id'].'&code='.$vo['id'])}">{$vo.text}</a></li>
                </if>
            </foreach>
        </ul>
    </div>
    <form action="{:U('product_content_edit_save')}" method="post" class="xsui-form" style="min-width:800px;">
        <fieldset>
            <div class="xsui-form-field-vertical">
                <label>商品描述：</label>
                <textarea name="content" class="xsui-editor" cols="90" rows="15" style="width:99%; min-height:300px;">{$data.content}</textarea>
            </div>
        </fieldset>
        <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>发布</button>
        <button type="reset" class="ui-state-default">重置</button>
        <input type="hidden" name="product_id" value="{$data.product_id}"/>
        <input type="hidden" name="code" value="{$data.code}"/>
    </form>
</block>